-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(logger): implement addFilter/removeFilter to address static typing errors #3380
Conversation
Signed-off-by: heitorlessa <[email protected]>
Signed-off-by: heitorlessa <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## develop #3380 +/- ##
===========================================
- Coverage 95.39% 95.37% -0.02%
===========================================
Files 208 208
Lines 9633 9637 +4
Branches 1766 805 -961
===========================================
+ Hits 9189 9191 +2
- Misses 330 331 +1
- Partials 114 115 +1 ☔ View full report in Codecov by Sentry. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@sthulb good to go now, ignored Sonar rule in functional test as it doesn't pose any risk (we want to redact sensitive data in our test). One last CI check (Python 3.11) and passing that it's good to merge. tks |
Issue number: #3358
Summary
Adds
addFilter
method that was previously missing so static type checkers are happy.Changes
addFilter
public methodremoveFilter
public methodUnrelated changes
logging._ExcInfoType
inexception()
method as per Static typing: Logger.exception() exc_info type does not match Python's built-in one #3356User experience
Experience in adding a filter like it was before but without any mypy errors
JSON output
Checklist
If your change doesn't seem to apply, please leave them unchecked.
Is this a breaking change?
RFC issue number:
Checklist:
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.